package javax.microedition.lcdui;

public abstract class Canvas extends Displayable {
  public static final int DOWN = 6;
  public static final int FIRE = 8;
  public static final int GAME_A = 9;
  public static final int GAME_B = 10;
  public static final int GAME_C = 11;
  public static final int GAME_D = 12;
  public static final int KEY_NUM0 = 48;
  public static final int KEY_NUM1 = 49;
  public static final int KEY_NUM2 = 50;
  public static final int KEY_NUM3 = 51;
  public static final int KEY_NUM4 = 52;
  public static final int KEY_NUM5 = 53;
  public static final int KEY_NUM6 = 54;
  public static final int KEY_NUM7 = 55;
  public static final int KEY_NUM8 = 56;
  public static final int KEY_NUM9 = 57;
  public static final int KEY_POUND = 35;
  public static final int KEY_STAR = 42;
  public static final int LEFT = 2;
  public static final int RIGHT = 5;
  public static final int UP = 1;

  protected Canvas() {

  }

  public boolean isDoubleBuffered() {
    return false;
  }

  public boolean hasPointerEvents() {
    return false;
  }

  public boolean hasPointerMotionEvents() {
    return false;
  }

  public boolean hasRepeatEvents() {
    return false;
  }

  public int getKeyCode(final int gameAction) {
    return -1;
  }

  public String getKeyName(final int keyCode) {
    return null;
  }

  public int getGameAction(final int keyCode) {
    return -1;
  }

  public void setFullScreenMode(final boolean mode) {

  }

  protected void keyPressed(final int keyCode) {

  }

  protected void keyRepeated(final int keyCode) {

  }

  protected void keyReleased(final int keyCode) {

  }

  protected void pointerPressed(final int x, final int y) {

  }

  protected void pointerReleased(final int x, final int y) {

  }

  protected void pointerDragged(final int x, final int y) {

  }

  public final void repaint(final int x, final int y, final int width, final int height) {

  }

  public final void repaint() {

  }

  public final void serviceRepaints() {

  }

  protected void showNotify() {

  }

  protected void hideNotify() {

  }

  protected abstract void paint(final Graphics g);

  protected void sizeChanged(final int w, final int h) {

  }
}